package org.dromara.event.domain.vo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.event.domain.EventAudit;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 活动审核视图对象 event_audit
 *
 * @author Lion Li
 * @date 2025-04-24
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = EventAudit.class)
public class EventAuditVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @ExcelProperty(value = "")
    private Long id;

    /**
     * 活动id
     */
    @ExcelProperty(value = "活动id")
    private Long eventId;

    /**
     * 用户id
     */
    @ExcelProperty(value = "用户id")
    private Long userId;

    private String userName;

    /**
     * 报名状态（0-审核中，1-审核通过，2-审核失败）
     */
    @ExcelProperty(value = "报名状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=-审核中，1-审核通过，2-审核失败")
    private String applyStatus;

    /**
     * 审核人
     */
    @ExcelProperty(value = "审核人")
    private Long auditUserId;


    /**
     * 审核时间
     */
    @ExcelProperty(value = "审核时间")
    private Date auditTime;

    /**
     * 审核备注
     */
    @ExcelProperty(value = "审核备注")
    private String auditRemark;

    private String avatarUrl;

}
